// pvRoomTestDlg.h : header file
//

#if !defined(AFX_PVROOMTESTDLG_H__75E9557F_0CFA_40C7_BE05_2D4CA4B2B2A2__INCLUDED_)
#define AFX_PVROOMTESTDLG_H__75E9557F_0CFA_40C7_BE05_2D4CA4B2B2A2__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CPvRoomTestDlg dialog

#include "PvRoomCtrl.h"

class CPvRoomTestDlg : public CDialog, public IPvBaseCtrlSink
{
// Construction
public:
	CPvRoomTestDlg(CWnd* pParent = NULL);	// standard constructor

	CPvRoomCtrl		m_ctrl;

	string			StrDec(const string& strSrc);
	void			AddChatLog(const char* sz);

// Dialog Data
	//{{AFX_DATA(CPvRoomTestDlg)
	enum { IDD = IDD_PVROOMTEST_DIALOG };
	CListBox	m_listUser;
	CEdit	m_editChatTo;
	CEdit	m_editChat;
	UINT	m_nUserID;
	UINT	m_nRoomID;
	CString	m_strSession;
	CString	m_strIp;
	int		m_nPort;
	//}}AFX_DATA

	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CPvRoomTestDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;

	// Generated message map functions
	//{{AFX_MSG(CPvRoomTestDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnButtonEnter();
	afx_msg void OnButtonSendchat();
	afx_msg void OnTimer(UINT nIDEvent);
	afx_msg void OnButtonVideo();
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()

public:
	virtual void OnEnterRoomResp(uint16_t rt);
	virtual void OnUserList(const UserInfo& userInfo);
	virtual void OnAddUser(const UserInfo& userInfo);
	virtual void OnDelUser(const UserInfo& userInfo);
	virtual void OnChat(const UserInfo& srcUserInfo, const UserInfo& dstUserInfo, BOOL bPrivate, const string& strMessage);

public:
	virtual void OnEnterMediaRoomResp(uint16_t rt){}
	virtual void OnVideoDataNotify(uint32_t pts, uint8_t* pData, uint16_t nDataLen){}
	virtual void OnAudioDataNotify(uint32_t pts, uint8_t* pData, uint16_t nDataLen){}

};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_PVROOMTESTDLG_H__75E9557F_0CFA_40C7_BE05_2D4CA4B2B2A2__INCLUDED_)
